package com.yugao.fintech.antelope.mps;

import com.yugao.fintech.antelope.base.config.core.ConfigFactory;
import com.yugao.fintech.antelope.base.model.enums.ConfigDefineEnum;
import com.yugao.fintech.antelope.mps.core.channel.client.BaseMsgChannelClient;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class MsgPushRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        BaseMsgChannelClient.initMsgChannel();
        ConfigFactory.addListenConfigs(ConfigDefineEnum.WX_MP, ConfigDefineEnum.WX_MA, ConfigDefineEnum.SMS, ConfigDefineEnum.EMAIL);
    }
}
